<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >

<head>
   <%@ include file="/common/CimsCommon.jsp" %>
   <title>新增合作机构交易流水表</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" href="<%=basePath%>/css/cims/cmmBase.css">
	<script type="text/javascript" src="<%=basePath%>/js/cims/creditManage/contractMassage.js"></script>
	<script type="text/javascript" src="${basePath}/js/cims/publicJs/modelManage.js"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			var value = $('#dtocooperorgCode').val();
			$("#operation").attr("disabled","disabled");
			if(value==""|| null ==value){
				toAddContract();
				
			}else{
				initFnCreditDetailView();				
				searchCreditPackage();
			}
			
			document.all.disable=true;
	   		
		});
	</script>
	
</head>
  
<body style="background-color:#FFFFFF;">
<div id="formPageSwap">
  <br/>
<form id="addNewsFormData" name="addNewsFormData" isCheck="true" action="com.jy.modules.cims.creditDeal.controller.TCMmCooperorgDealController">
 <table id="addNewsTableId" class="formTableSwap" style="background:#D9D8DF;" border="0" align="center" cellpadding="0" cellspacing="1" >
<tr>
<td colspan="6" align="center" class="thTop">合约信息</td>
</tr>
<tr>
  <th> 合作机构 ：</th>
  <td >
  <input type="text" style="display:none;" name="isSelectContract" id="isSelectContract" value="true">
  <input type="text" style="display:none;" name="idValue" id="idValue" >
  <input type="text" style="display:none;" name="dealCode" id="dealCode" >
  <input disabled="disabled" style="display:none;" type="text" class="text" id="dtocooperorgCode" name="cooperorgCode"   value="${dto.cooperorgDTO.cooperorgCode}" />
  <input disabled="disabled" type="text" class="text" id="dtocooperorgName" name="cooperorgName"   value="${dto.cooperorgDTO.cooperorgName}" />
  </td>
  <th> 协议名称 ：</th>
  <td > 
  <input disabled="disabled" type="text" class="text" id="dtoagreementName" name="agreementName"   value="${dto.agreementDTO.agreementName}" />
  </td>
  <th> 合约名称 ：</th>
  <td > 
  <input disabled="disabled" style="display:none;" type="text" class="text" id="dtocontractCode" name="contractCode"   value="${dto.cdto.contractCode}" />
  <input disabled="disabled" type="text" class="text" id="dtocontractName" name="contractName"   value="${dto.cdto.contractName}" />
  </td> 
</tr>

<tr>
  <th> 发起方 ：</th>
  <td> 
  <input disabled="disabled" type="text" class="text" id="dtoinitiator" name="initiator"   value="${dto.cdto.initiator}" />
  </td>
  <th> 接收方：</th>
  <td colspan="3"> 
  <input disabled="disabled" type="text" class="text" id="dtoreceiver" name="receiver"  value="${dto.cdto.receiver}" />
  </td>

</tr>

<tr>
  <th> 付款方 ：</th>
  <td > 
  <input disabled="disabled" type="text" class="text" id="dtopayer" name="payer"  value="${dto.cdto.payer}" />
  </td>
  <th> 收款方 ：</th>
  <td > 
  <input disabled="disabled" type="text" class="text" id="dtogathering" name="gathering"  value="${dto.cdto.gathering}" />
  </td>
  <th> 价格认定 方：</th>
  <td > 
  <select disabled="disabled" id="creditorAffirmRule" >
  	<option value="0">请选择</option>
  	<option value="1">发起方</option>
  	<option value="2">接收方</option>
  </select> 
  </td>  
</tr>

<tr>
<th> 交易类型 ：</th>
  <td > 
   <select disabled="disabled" id="creditorAffirmRule" >
  	<option value="0">请选择</option>
  	<option value="1">债权转让</option>
  	<option value="2">债权授让</option>
  	<option value="3">贷款转出</option>
  	<option value="4">贷款转入</option>
  </select>
  </td>
  
  <th> 申请额度：</th>
   <td>
  	  <input type="text" class="text" id="dtoquotaSum" name="quotaSum"  maxLength="10" value="" >
  </td>
  <th> 操作：</th>
   <td>
  	  <input type="button" class="text" id="operation" name="operation" onclick="toAddContract()" value="重新选择合约" >
  </td>
</tr>
<tr id="creditRestrainTitle">
<td colspan="6" align="center" class="thTop">债权约束</td>
</tr>

<tr id="creditRestrainTitleValue">
	<td colspan="6">
		<%@include file="../limitRequest/contractConstraint.jsp" %>
	</td>
</tr>

<tr id="creditOperation">
 	<td colspan="6" align="center" class="thTop">债权操作</td>	
</tr>

<tr id="creditPackageColumn">
   <th> 选择债权包：</th>
   <td >
  	  <select id="creditPackage" onchange="creditPackageOperation(this)"></select>
  </td>
  <td colspan="6">
  	<input id="creditPackageWrite"  type="text">
  </td>
</tr>
</table>

<!-- 列表按钮操作 start -->
	<div id="creditDetailOperation" class="tableToolbar">
		  	<a href="javascript:void(0)" onclick="toAddDataCredit()" >新 增</a>
		  	<a href="javascript:void(0)" onclick="" >删 除</a>
		  	<a href="javascript:void(0)" onclick="toUpdateData()" >导 入</a>
		  	<a href="javascript:void(0)" onclick="toSelectTemplate()" >导 出</a>
	</div>

	<div id="creditDetailTable">
		<%@include file="../creditManage/viewCreditDealDetail.jsp" %>
		<span id="CreditValueSum">
			债权价值合计：<input type="text" class="text" value="">元
		</span>
	</div>
 
<!-- <table class="formTableSwap" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
 	<td colspan="6" align="center" class="thTop">债权结算</td>	
</tr>

<tr>
  <th style="width:100px;"> 费用金额：</th>
  <td colspan="6" align="left"> 
  <input type="text" class="text" id="dtopracticalSellSum" name="practicalSellSum"  maxLength="11" value="" />
  </td>
 
</tr>
</table> -->

</form>
<div class="expandToolbar">
		<span class="submitBtn mouseName" onclick="saveCreditDeal()">保存</span>
		<span class="submitBtn mouseName" onclick="parent.tabs.close()">关闭</span>
</div>
</div>

</body>

<script type="text/javascript">
   $(document).ready(function(){
   	checkedInit();
	});
	
	
	
</script>
  
</html>
